package com.hellobike.haxing.modules.wms.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hellobike.haxing.modules.wms.entity.CarDriver;
import com.hellobike.haxing.modules.wms.mapper.CarDriverMapper;
import com.hellobike.haxing.modules.wms.service.ICarDriverService;
import org.springframework.stereotype.Service;

/**
 * @Description: t_wms_car_driver
 * @Author: haxing-boot
 * @Date:   2020-02-02
 * @Version: V1.0
 */
@Service
public class CarDriverServiceImpl extends ServiceImpl<CarDriverMapper, CarDriver> implements ICarDriverService {

    @Override
    public CarDriver getByTel(String driverTel) {
        CarDriver param = new CarDriver();
        param.setDriverTel(driverTel);
        Wrapper<CarDriver> wrapper = new QueryWrapper<>(param);
        return baseMapper.selectOne(wrapper);
    }
}
